﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;

namespace OnlineCourse.API.Helper
{
    public enum ErrorCode
    {
        [Description("参数有错误")]
        BadRequest = 400,
        [Description("授权令牌过期或错误")]
        Unauthorized = 401,
        /// <summary>
        /// 验证码错误
        /// </summary>
        [Description("验证码错误")]
        VerificationCodeError = 402,
        /// <summary>
        /// 无权限的操作
        /// </summary>
        [Description("无权限的操作")]
        Forbidden = 403,
        /// <summary>
        /// 找不到指定的内容
        /// </summary>
        [Description("找不到指定的内容")]
        NotFound = 404,
        [Description("密码错误")]
        PassWordError = 405,
        /// <summary>
        /// 服务器处理出错
        /// </summary>
        [Description("服务器处理出错")]
        InternalServerError = 500,
    }
}
